#include <stdio.h>
#include "blockEncrypter.h"

#define FERROR(label, errorCode) 	{\
						fprintf(stderr, label);\
						return errorCode;\
					}

int
main( int argc, char *argv[] )
{
	blockEncrypterT encrypter;


	if( (encrypter=InitializeBlockEncrypter( argc-1, argv+1 )) == NULL )
       	FERROR("\nmain(): Unable to initialize encrypter program ... Bye Bye !!!\n", 2)

    //ShowOperationData( encrypter );
	
	if( RunBlockEncrypter( encrypter ) != 0 )
        fprintf(stderr, "main(): Error while running encrypter\n");

	TerminateBlockEncrypter( &encrypter );
	
	return 0;
}
